function exportToExcel(table, fileName) {
	var colsTile = $("#" + table).datagrid("options").columns;
	var rowsData = $("#" + table).datagrid("getRows");

	var exportEntry = {};
	exportEntry.colsTile = colsTile[0];
	exportEntry.rowsData = rowsData;
	exportEntry.fileName = fileName;

	var data = JSON.stringify(exportEntry);

	$.post("/export/exportExcel.do", {
		json : data
	}, function(data) {
		if (data.message == "failed") {
			$.messager.alert("提示信息", "文件导出失败，提交数据为空！");
		} else {
			var param = {};
			param.fileId = data.message;
			var requestUrl = "/export/download.do?" + $.param(param);
			window.location.href = requestUrl;
		}
	});
}